feat: WCAG color contrast checker#131
Merged
peckz merged 7 commits intojamdotdev:mainfrom Dec 29, 2025
Merged
Conversation
- Introduced a new ColorPicker component for selecting colors. - Added WcagComplianceBadge for displaying compliance status. - Implemented WCAG color contrast utility functions for calculating contrast ratios and compliance. - Created a new page for the WCAG Color Contrast Checker with input fields for foreground and background colors. - Updated package.json and package-lock.json to include necessary dependencies for react-color and related types. - Enhanced global styles for better presentation of content.
- Added @types/react-color to package-lock.json for better type support. - Made minor formatting adjustments in various components for improved readability. - Updated package.json and package-lock.json to ensure consistency. - Enhanced global styles and fixed missing newlines in several files.
Collaborator
|
@EduardoDePatta thank you! This looks quite good, one suggestion though We have an error message that says "input a valid hex color."
|
peckz
approved these changes
Dec 18, 2025
…or graphical objects and UI components
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This PR adds a new accessibility tool to check color contrast ratios according to WCAG 2.1 guidelines.
This tool helps developers and designers: